package model

var RootNode,
	EmailNode,
	EmailAddOrUpdateNode,
	StrategyAddNode,
	StrategyDeleteNode,
	StrategyNode,
	StrategyAlertsNode Node

type Node struct {
	Name        string
	Handler     func(input, openId string, output *[]string) Node
	CommandList []string
}

func (n *Node) AddHandler(f func(input, openId string, output *[]string) Node) {
	n.Handler = f
}
func (n *Node) AddCommand(message string) {
	n.CommandList = append(n.CommandList, message)
}
